#ifndef __TASK__WIFI_H__
#define __TASK__WIFI_H__

#include "task_public.h"

extern char local_host_name[32];

typedef enum {
	TASK_WIFI_STATUS__WAITING_CONNECT_To_AP = 0,
	TASK_WIFI_STATUS__WAITING_A_STA_CONNECT = 1,
	TASK_WIFI_STATUS__AS_STA_CONNECTED_To_AP = 2,
	TASK_WIFI_STATUS__AS_STA_DISCONNECTED_To_AP = 3,
	TASK_WIFI_STATUS__AS_AP_CONNECTED_To_STA = 4,
	TASK_WIFI_STATUS__AS_AP_DISCONNECTED_To_STA = 5,
} e_task_wifi_status;
extern e_task_wifi_status	task_wifi_status;

typedef enum {
	TASK_WIFI_TRYING__NONE = 0,
	TASK_WIFI_TRYING__CONNECT_To_AP = 1,
	TASK_WIFI_TRYING__CONNECT_To_STA = 2,
	TASK_WIFI_TRYING__CONNECT_To_STA_AND_CONNECT_To_AP = 3
} e_task_wifi_trying;
extern e_task_wifi_trying	task_wifi_trying;



void wifi_init(void);
void wifi_task(void* parm);



#endif
